package com.banksoft.cps.dao;

import com.banksoft.cps.bean.Company;
import com.banksoft.cps.bean.query.CompanyQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by rongzhao.zhu on 2017/12/22.
 */
@Repository
public interface CompanyDao {

    List<Company> list(CompanyQuery query);

    long count(CompanyQuery query);

    void insert(Company company);

    void update(Company company);

    List<Company> listByIdList(List<String> idList);

    Company findById(String id);

    Company findByAccount(String account);

    void deleteByIds(String[] ids);
}
